#!/bin/bash

#BSUB -P csc296
#BSUB -W 1:00
#BSUB -nnodes 1
#BSUB -q batch
#BSUB -J upcxx
#BSUB -o %J.stdout.txt
#BSUB -e %J.stderr.txt

set -e

source ~/.bash_profile

setup_upcxx
export GASNET_BACKTRACE=1

pushd $HOME/upcxx/upcxx-extras-fork/examples/cuda/vecadd

jsrun -n 2 -a 1 -g 1 -c 1 ./vecadd
